/*
 * 作者: junmu
 * 时间: 2025-07-22
 */
package com.hzbc.faceattendance.repository;

import com.hzbc.faceattendance.model.WhiteList;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WhitelistRepository extends JpaRepository<WhiteList, Long> {
    Page<WhiteList> findByNameContaining(String keyword, Pageable pageable);
    List<WhiteList> findByRole(Integer role);
    WhiteList findByNameContaining(String whiteName);
}
